package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;

import com.atguigu.common.vo.MemberRegistVo;

import com.atguigu.common.vo.UserLoginVo;
import com.atguigu.gulimall.auth.vo.SocialUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wangzhenjun
 * @date 2022/2/22 8:38
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody MemberRegistVo memberRegistVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oanth2/login")
    R oanthlogin(@RequestBody SocialUser socialUser) throws Exception;
}
